public class Test3 {
    public static void main(String[] args) {
        int arr[] ={1,2,12};
        System.out.println(isOdd(arr));
    }

    public static boolean isOdd(int[] array){
        for (int i = 0; i < array.length - 2; i++) {
            if (array[i] % 2 != 0 && array[i+1] %2 != 0 && array[i+2] != 0){
                return true;
            }
        }
        return false;
    }
}


